<div class="row">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li>
                <i class="fa fa-dashboard"></i> <a href="index.html">考试管理</a>
            </li>
            <li class="active">
                <i class="fa fa-table"></i> 所有题目
            </li>
        </ol>
    </div>
</div>
<div class="row">
    <div class="col-md-12">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">所有题目信息</h3>
                <br>
                <div>
                    <div class="pull-left">
                        <div class="has-feedback">
                            <input placeholder="题目" class="form-control" name="table_search" ng-model="questionName" type="search" style="width: 200px;" />
                            <button type="button" class="btn" ng-click="searchQuestions()">搜索</button>
                            <button type="button" class="btn pull-right" ng-click="addQuestion()">新增题目</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box-body">
                <div class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-md-12">
                            <table class="table table-striped table-hover">
                                <thead>
                                <tr role="row">
                                    <th>题目</th>
                                    <th>类型</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody ng-show="!isLoading">
                                <tr ng-repeat="row in questions">
                                    <td style="width:200px;" ng-bind="row.simpleTitle"></td>
                                    <td ng-bind="row.type"></td>
                                    <td>
                                        <a type="button" class="btn btn-sm btn-info" href="javascript:void(0);" ng-click="showInfoModal(row.id)">
                                            <i class="fa fa-search"></i> 查看
                                        </a>
                                        <a type="button" class="btn btn-sm btn-warning" href="javascript:void(0);" ng-click="showEditModal(row.id)">
                                            <i class="fa fa-pencil"></i> 编辑
                                        </a>
                                        <a type="button" class="btn btn-sm btn-danger" href="javascript:void(0);" ng-click="deleteQuestion(row.id)">
                                            <i class="fa fa-trash"></i> 删除
                                        </a>
                                    </td>
                                </tr>
                                </tbody>
                                <tbody ng-show="isLoading">
                                <tr role="row">
                                    <td class="text-center" colspan="12">
                                        <h4>加载中 ... </h4>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <ul uib-pagination items-per-page="itemsPerPage" total-items="totalNum" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-link-numbers="true" ng-change="pageChanged()"></ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
